<template>
	<view class="container">
		<view class="title">快捷登录</view>
		<view class="section">
			<view class="group">
				<view class="tips">登录后即可使用小程序</view>
				<view class="number">{{ getEncryptedPhoneNumber('15712343407') }}</view>
				<view class="info">认证服务由xxx提供</view>
			</view>
			<view class="actions">
				<z-button url="/pages/home/home" open-type="switchTab">一键登录</z-button>
				<z-button type="plain" url="/pages/login/captchaLogin">其它手机号码登录</z-button>
			</view>
		</view>
		<view class="footer">
			<view class="demerger">
				<view class="line"></view>
				<view class="context">第三方登录</view>
				<view class="line"></view>
			</view>
			<view class="logo">
				<image class="img" src="@/static/images/wechat.jpg"></image>
			</view>
		</view>
	</view>
</template>

<script setup>
import { getEncryptedPhoneNumber } from '@/utils/common'
</script>

<style lang="scss">
.container {
	height: 100vh;
	background-color: #fff;
	padding: 136rpx 32rpx 0 32rpx;
	font-family: PingFang SC, PingFang SC;
	.title {
		font-size: 44rpx;
		color: #222;
		font-weight: bold;
	}
	.section {
		margin-top: 86rpx;
		.group {
			text-align: center;
			.tips {
				font-size: 32rpx;
				line-height: 44rpx;
				color: #999;
			}
			.number {
				margin: 28rpx 0;
				font-size: 60rpx;
				font-weight: bold;
				line-height: 83rpx;
			}
			.info {
				font-size: 32rpx;
				line-height: 44rpx;
				color: #C9C9C9;
			}
		}
		.actions {
			margin-top: 60rpx;
			.btn-wrapper {
				&:not(:last-child) {
					margin-bottom: 24rpx;
				}
			}
		}
	}
	.footer {
		position: fixed;
		bottom: 32rpx;
		left: 0;
		right: 0;
		display: flex;
		flex-direction: column;
		justify-content: center;
		align-items: center;
		.demerger {
			display: flex;
			align-items: center;
			.line {
				width: 180rpx;
				height: 1rpx;
				background-color: #999;
			}
			.context {
				font-size: 28rpx;
				color: #999;
				margin: 30rpx;
			}
		}
		.logo {
			width: 88rpx;
			height: 88rpx;
			.img {
				height: 100%;
			}
		}
	}
}
</style>
